﻿
@if (Request.IsAuthenticated)
{
    ViewBag.LoginUser = CurrentUser.GetLoginUserName();
    ViewBag.DeptName = CurrentUser.GetLoginDeptName();
}
else
{
    ViewBag.LoginUser = "未登录";
    ViewBag.DeptName = "未登录";
}

<div class="login-info">
    <div style="float:left;color:#006e6b">
        <span style="color:Black">当前用户：</span>[@ViewBag.LoginUser]
        &nbsp;
         <span style="color:Black">所属单位：</span>[@ViewBag.DeptName]
         &nbsp; 
        [@Html.ActionLink("注销", "LogOff", "Account")]
        &nbsp; 
    </div>
    <div id="tip" style="color:red;display:none;float:left">
        浏览器版本过低，建议升级，请点击<a href="~/ie8.exe">[此处]</a>下载安装。
    </div>
    <div style="float:left;color:red;">如果出现维修单页面错误，请升级浏览器，然后在<a href="~/IE8-WindowsXP-KB2416400-x86-CHS.exe">[此处]</a>下载补丁</div>
</div>

<script type="text/javascript">
    if ($.browser.msie && $.browser.version < 8) {
        $("#tip").css("display","block");
    }
</script>